import axios from 'axios'
 
const get = ({url, params = {},headers = {}}) => {
  return axios({
    url,
    params,
    headers:{
      ...headers,
      'Content-Type':'multipart/form-data',
    }
  })
  .then(result => {
    return result.data
  })
}
const post = ({url, params = {},headers = {}}) => {
  return axios({
    url,
    params,
    headers:{
      ...headers,
      'Content-Type':'multipart/form-data'
    }
  })
  .then(result => {
    return result.data
  })
}

export {
  get,
  post
}